package org.strongme.modules.sys.dao;

import java.util.List;

import org.strongme.common.persistence.CrudDao;
import org.strongme.modules.sys.entity.Role;

public interface RoleDao extends CrudDao<Role> {

	public Role getByName(Role role);

	public Role getByEnname(Role role);

	/**
	 * 维护角色与菜单权限关系
	 * 
	 * @param role
	 * @return
	 */
	public int deleteRoleMenu(Role role);

	public int insertRoleMenu(Role role);
	
	public List<Role> findByUserId(Role role);

}
